package com.dhp.bkapigateway.constant;

public class RedisConstant {

    /**
     * 接口防抖redis记录前缀
     */
    public static final String Second_ACCESS = "SecondACCESS:";

    /**
     * 时间段内最大请求次数
     */
    public static final Integer MAX_COUNT = 3;

    /**
     * 时间段
     */
    public static final Integer PERIOD = 5;


    /**
     * 时间单位秒
     */
    public static final String SECOND_UNIT = "seconds";

    /**
     * 时间单位分
     */
    public static final String MINUTE_UNIT = "minutes";

    /**
     * 时间单位时
     */
    public static final String HOUR_UNIT = "hours";
}
